package com.ht.temp.service.impl;

import com.ht.temp.entity.TemperatureLimit;
import com.ht.temp.mapper.TemperatureLimitMapper;
import com.ht.temp.service.ITemperatureLimitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-26
 */
@Service
public class TemperatureLimitServiceImpl extends ServiceImpl<TemperatureLimitMapper, TemperatureLimit> implements ITemperatureLimitService {

    @Autowired
    private TemperatureLimitMapper temperatureLimitMapper;

    @Override
    public TemperatureLimit getTemper() {
        return temperatureLimitMapper.selectTemper();
    }

    @Override
    public Integer editTemper(TemperatureLimit temperatureLimit) {
        return temperatureLimitMapper.updateTemper(temperatureLimit);
    }
}
